/*
 * 用户角色枚举
 */
export enum UserRole {
  USER = 'user',
  ADMIN = 'admin'
}

/*
 * 用户角色标签
 */
export const UserRoleLabel = {
  USER: {
    value: UserRole.USER,
    label: '普通用户'
  },
  ADMIN: {
    value: UserRole.ADMIN,
    label: '管理员'
  }
} as const;

/*
 * 用户角色选项
 */
export const UserRoleOptions = Object.values(UserRoleLabel).map((item: { value: UserRole; label: string }) => ({
  value: item.value,
  label: item.label
}));
